<!-- 我的关联 -->

<template>
  <div v-if="one.id" class="DetailDevice-MyBind">
    <BtnText v-if="one.deviceCode" title="查看设备" meduim green @click="windowDetail(one.deviceId)" />
    <BtnText v-if="one.deviceCode" title="解除关联" meduim red @click="openRej" />
    <BtnText v-else title="关联设备" meduim @click="openEdit" />
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import mixDetailToTable from '@admin/components/detail/mixDetailToTable'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyBind',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [mixDetailToTable('', 'DetailIOT')],
}
</script>

<style lang="scss">
@import './index.scss';
</style>
